package system

type RouterResp struct {
	// Route name
	Name string ` json:"name"`
	// Route path
	Path string ` json:"path"`
	// Indicates if the route is hidden from the sidebar
	Hidden bool ` json:"hidden"`
	// Redirect path, when set to noRedirect the route cannot be clicked in breadcrumb navigation
	Redirect string ` json:"redirect"`
	// Component path
	Component string ` json:"component"`
	// Route parameters, e.g., {"id": 1, "name": "ry"}
	Query string ` json:"query"`
	// When there are more than one child routes declared under a route, it automatically becomes a nested mode
	AlwaysShow bool ` json:"alwaysShow"`
	// Additional elements
	Meta *MetaResp ` json:"meta"`
	// Child routes
	Children []*RouterResp ` json:"children"`
}
